﻿using System;
using Thrift.Server;
using Thrift.Transport;

namespace ThriftTest1.Server
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            TServerTransport transport = new TServerSocket(8801);//监听8801端口
            var processor = new RuPeng.ThriftTest1.Contract.UserService.Processor(new UserServiceImpl());//设置实现类
            TServer server = new TThreadPoolServer(processor, transport);
            server.Serve();
        }
    }
}
